+opencc (0.3.0-2) unstable; urgency=low
+
+ * Multi-arch it.
+ * Add libopencc-dbg package.
+ * Bump standard version to 3.9.3.
+ * Add YunQiang Su to Uploaders.
+
+ -- YunQiang Su <wzssyqa@gmail.com> Thu, 29 Mar 2012 03:22:51 +0800
+
opencc (0.3.0-1) unstable; urgency=low
* Team upload.
Source: opencc
Priority: optional
Maintainer: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
-Uploaders: LI Daobing <lidaobing@debian.org>, Asias He <asias.hejun@gmail.com>
-Build-Depends: debhelper (>= 7.0.50~), dpkg-dev (>= 1.16.1.1~), cmake
-Standards-Version: 3.9.2
+Uploaders: LI Daobing <lidaobing@debian.org>, Asias He <asias.hejun@gmail.com>,
+ YunQiang Su <wzssyqa@gmail.com>
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1.1~), cmake
+Standards-Version: 3.9.3
Section: libs
Homepage: http://code.google.com/p/opencc
Vcs-Git: git://git.debian.org/git/pkg-ime/opencc.git
This package includes the conversion tool.
Package: libopencc1
-Section: libs
Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: libopencc0
Conflicts: libopencc0
simplified chinese.
.
This package includes the development support files.
+
+Package: libopencc-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libopencc1 (= ${binary:Version}), ${misc:Depends}
+Description: simplified-traditional chinese conversion library - debug
+ opencc is a library for converting character between traditional chinese and
+ simplified chinese.
+ .
+ This package includes the debug symbols which is useful when debug.
usr/include/*
-usr/lib/lib*.a
-usr/lib/lib*.so
-usr/lib/pkgconfig/*
+usr/lib/*/lib*.a
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
-usr/lib/lib*.so.*
-usr/share/opencc/*
+usr/lib/*/lib*.so.*
+usr/lib/*/opencc/*
usr/share/locale/*
-Description: Fix new test cases
+Description: Fix new test cases, install data file to meet need of multi-arch
Copy nedded dict files to ${PROJECT_BINARY_DIR}/data for tests.
-Author: Kan-Ru Chen <koster@debian.org>
+ Install data files to ${DIR_LIBRARY} instead of ${DIR_SHARE}
+Author: Kan-Ru Chen <koster@debian.org>, YunQiang Su <wzssyqa@gmail.com>
---- a/data/CMakeLists.txt
-+++ b/data/CMakeLists.txt
+Index: opencc/data/CMakeLists.txt
+===================================================================
+--- opencc.orig/data/CMakeLists.txt 2012-03-29 01:56:20.043932047 +0800
++++ opencc/data/CMakeLists.txt 2012-03-29 03:16:12.183694991 +0800
@@ -92,4 +92,10 @@
${CHINA_DICT_FILES}
DESTINATION
+ configure_file(${DICT} ${PROJECT_BINARY_DIR}/data COPYONLY)
+ endforeach (DICT)
+endif (BUILD_TESTING)
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
+Index: opencc/CMakeLists.txt
+===================================================================
+--- opencc.orig/CMakeLists.txt 2012-03-29 01:56:20.043932047 +0800
++++ opencc/CMakeLists.txt 2012-03-29 03:16:34.919807728 +0800
@@ -20,6 +20,7 @@
cmake_minimum_required(VERSION 2.8)
set (PACKAGE_NAME opencc)
enable_testing()
######## Package information
+@@ -86,7 +87,7 @@
+ set (DIR_ETC ${SYSCONF_INSTALL_DIR})
+ endif (DEFINED SYSCONF_INSTALL_DIR)
+
+-set (DIR_SHARE_OPENCC ${DIR_SHARE}/opencc)
++set (DIR_SHARE_OPENCC ${DIR_LIBRARY}/opencc)
+ set (DIR_SHARE_LOCALE ${DIR_SHARE}/locale)
+
+ ######## Configuration
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
%:
dh $@
override_dh_auto_configure:
- dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON
+ dh_auto_configure -- \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib/${DEB_HOST_MULTIARCH}/ \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_GETTEXT:BOOL=ON
+
+override_dh_strip:
+ dh_strip -plibopencc1 --dbg-package=libopencc-dbg
+ dh_strip